var mongoose = require('mongoose')
mongoose.connect('mongodb://127.0.0.1:27017/test')
mongoose.connection.once("open",function(){console.log("mongodb链接成功------------")})
module.exports = mongoose